<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>潜在客户组织资源</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script language="javascript">
function doCreateClueAction(){
	doSubmit({actionType:'doCreateClueAction'});
}
function doApporve(){
	doSubmit({actionType:'doApporve'});
}
function doRevokeApporve(){
	doSubmit({actionType:'doRevokeApporve'});
}
function doSaveAction(){
	postRequest('form1',{actionType:'save',onComplete:function(responseText){
			if ("success" == responseText){
					window.location.href = "index?OrgInfoManageList";
				}else if("repeat" == responseText){
						hideSplash();
						writeErrorMsg('邮箱名重复，请检查！');
					}else{
						hideSplash();
						writeErrorMsg('保存操作出错啦！');					
				}
			}
		})
}
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ParamBar__" style="float: right;">&nbsp;</div>
<div id="__ToolBar__">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<%if(pageBean.getBoolValue("doEdit8Save")){ %>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="enableSave()" ><input value="&nbsp;" type="button" class="editImgBtn" id="modifyImgBtn" title="编辑" />编辑</td>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="doSaveAction()"><input value="&nbsp;" type="button" class="saveImgBtn" id="saveImgBtn" title="保存" />保存</td>
<%} %>  
<%if(pageBean.getBoolValue("createClue")){ %>
<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx"            align="center" onclick="doCreateClueAction()" ><input value="&nbsp;"type="button" class="editImgBtn" id="revokeApproval" title="生成线索" />生成线索</td> 
<%} %>
<%if(pageBean.getBoolValue("doApporve")){ %>
<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx"            align="center" onclick="doApporve()" ><input value="&nbsp;"type="button" class="confirmImgBtn" id="Apporve" title="核准" />核准</td>
<%} %>
<%if(pageBean.getBoolValue("doRevokeApporve")){ %>
<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx"            align="center" onclick="doRevokeApporve()" ><input value="&nbsp;"type="button" class="revokeConfirmImgBtn" id="revokeApporve" title="反核准" />反核准</td>
<%} %>
<td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="goToBack();"><input value="&nbsp;" type="button" class="backImgBtn" title="返回" />返回</td>
</tr>
</table>
</div>
<table class="detailTable" cellspacing="0" cellpadding="0">
<tr>
	<th width="100" nowrap>组织名称</th>
	<td><input id="ORG_NAME" label="组织名称" name="ORG_NAME" type="text" value="<%=pageBean.inputValue("ORG_NAME")%>" style="width: 302px" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>组织性质</th>
	<td><select id="ORG_TYPE" label="组织性质" name="ORG_TYPE" style="width: 303px" class="select"><%=pageBean.selectValue("ORG_TYPE")%></select>
</td>
</tr>
<tr>
	<th width="100" nowrap>联系人</th>
	<td><input id="ORG_LINKMAN_NAME" label="联系人" name="ORG_LINKMAN_NAME" type="text" value="<%=pageBean.inputValue("ORG_LINKMAN_NAME")%>" style="width: 302px" size="24" class="text" />
</td>
</tr>
<tr>
<th width="100" nowrap>简要介绍</th>
	<td><textarea id="ORG_INTRODUCTION" label="简要介绍" name="ORG_INTRODUCTION" style="width:600px" cols="40" rows="5" class="textarea"><%=pageBean.inputValue("ORG_INTRODUCTION")%></textarea>
</td>
</tr>
<tr>
	<th width="100" nowrap>邮箱</th>
	<td><input id="ORG_EMAIL" label="邮箱" name="ORG_EMAIL" type="text" value="<%=pageBean.inputValue("ORG_EMAIL")%>" style="width: 302px" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>地址</th>
	<td><input id="ORG_ADDRESS" label="地址" name="ORG_ADDRESS" type="text" value="<%=pageBean.inputValue("ORG_ADDRESS")%>" size="24" style="width:600px" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>公司网站</th>
	<td><input id="ORG_WEBSITE" label="公司网站" name="ORG_WEBSITE" type="text" value="<%=pageBean.inputValue("ORG_WEBSITE")%>" style="width: 302px" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>联系方式</th>
	<td><input id="ORG_CONTACT_WAY" label="联系方式" name="ORG_CONTACT_WAY" type="text" value="<%=pageBean.inputValue("ORG_CONTACT_WAY")%>" size="24" style="width:600px" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>标签</th>
	<td><input id="ORG_LABELS" label="标签" name="ORG_LABELS" type="text" value="<%=pageBean.inputValue("ORG_LABELS")%>" style="width: 302px" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>状态</th>
	<td>
	<input id="ORG_STATE_TEXT" label="状态" name="ORG_STATE_TEXT" type="text" value="<%=pageBean.selectedText("ORG_STATE")%>" style="width: 302px" size="24"  class="text" readonly="readonly"/>
	<input id="ORG_STATE" label="状态" name="ORG_STATE" type="hidden" value="<%=pageBean.selectedValue("ORG_STATE")%>" />
   </td>
</tr>
<tr>
	<th width="100" nowrap>创建人</th>
	<td><input name="ORG_CREATER_NAME" type="text" class="text"	id="ORG_CREATER_NAME"	value="<%=pageBean.inputValue("ORG_CREATER_NAME")%>" style="width: 302px" size="24"	readonly="readonly" label="创建人" /> 
		<input id="ORG_CREATER" label="创建人"  name="ORG_CREATER" type="hidden"	value="<%=pageBean.inputValue("ORG_CREATER")%>"  size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>创建时间</th>
	<td><input id="ORG_CREATE_TIME" label="创建时间" name="ORG_CREATE_TIME" type="text" value="<%=pageBean.inputTime("ORG_CREATE_TIME")%>" readonly="readonly" style="width: 302px" size="24" class="text" />
</td>
</tr>
</table>
<input type="hidden" name="actionType" id="actionType" value=""/>
<input type="hidden" name="operaType" id="operaType" value="<%=pageBean.getOperaType()%>"/>
<input type="hidden" id="ORG_ID" name="ORG_ID" value="<%=pageBean.inputValue4DetailOrUpdate("ORG_ID","")%>" />
</form>
<script language="javascript">
requiredValidator.add("ORG_NAME");
requiredValidator.add("ORG_CONTACT_WAY");
initDetailOpertionImage();
</script>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
